import {
    get,
    post
} from '../utils/request';
import request from "@/utils/request";

let baseUrl = process.env.VUE_APP_JHZF_API;
export const qryAppList = ({deptId, storeId}) => {
  return request({
    url: `${baseUrl}/api/cloud-agent/agent/bankActManage/qryAppList?actSource=merc&deptId=${deptId}&storeId=${storeId}`,
    method: 'get'
  })
}

export const bankActManage = (params) => {
  return request({
    url: `${baseUrl}/api/cloud-agent/agent/bankActManage/${params.id}`,
    method: 'get',
  })
}

export const qryBankActByStoreNo = ({storeNo}) => {
    return request({
      url: `${baseUrl}/api/cloud-merchant/bankAct/app/qryBankActByStoreNo?storeNo=${storeNo}`,
      method: 'get'
    })
  }

  export const qryQuotaPackageByActJrnId = (params) => {
    return request({
      url: `${baseUrl}/api/cloud-merchant/actQuotaPackage/app/qryQuotaPackageByActJrnId`,
      method: 'get',
      params
    })
  }

  export const actQuotaStatisticsList = (params) => {
    return request({
      url: `${baseUrl}/api/cloud-bill/offline/actStatistics/actQuotaStatisticsList`,
      method: 'get',
      params
    })
  }

  export const qryApplyBoolean = (data) => {
    return request({
      url: `${baseUrl}/api/cloud-merchant/mrc/bank/qryApplyBoolean`,
      method: 'post',
      data
    })
  }

  export const cardApply = (data) => {
    return request({
      url: `${baseUrl}/api/cloud-merchant/mrc/bank/cardApply`,
      method: 'post',
      data
    })
  }
  // 报名抽屉状态查询
  export const qryApplyTabSts = (data) => {
    return request({
      url: `${baseUrl}/api/cloud-merchant/mrc/bank/qryApplyTabSts`,
      method: 'post',
      data
    })
  }
  // App-立即报名
  export const applyNow = (data) => {
    return request({
      url: `${baseUrl}/api/cloud-merchant/mrc/bank/applyNow`,
      method: 'post',
      data
    })
  }
  


export const getAgentDetail = (id) => {
    return get(`/cloud-agent/agent/agentinfo/detail?id=${id}`);
};
